package com.zxq.ai.application.helper;

import java.util.function.Supplier;

public interface TransactionManagerProxy {

    void execute(TransactionManagerProxy.VoidSupplier voidSupplier);

    <T> T execute(TransactionManagerProxy.ResultSupplier<T> resultSupplier);

    public interface ResultSupplier<T> extends Supplier<T> {
    }

    public interface VoidSupplier extends Runnable {
    }

}
